<?php
global $language;
$nid = $nids[0];
if (is_numeric($nid)) {
  $node = node_load($nid);
  if (!empty($node)) {
    $readmore_link = '<a style="text-decoration:underline; font-style: italic;" href="' . url('node/' . $node->nid) . '">' . t('Read More') . '</a>';
    $body = field_get_items('node', $node, 'body', $language->language);
    $body = !empty($body) ? sub_word($body[0]['value'], 20) . '...' . $readmore_link : '';
    $field_image = field_get_items('node', $node, 'field_image', $language->language);
    $field_image = !empty($field_image) ? $field_image[0]['uri'] : "";
    $field_image = !empty($field_image) ? image_style_url('with91px', $field_image) : get_image_path() . 'default_image.jpg';
    ?>
    <a href="<?php url('node/' . $node->nid); ?>">
      <img src="<?php print $field_image; ?>" alt="<?php print $node->title ?>">
    </a>
    <div class="inner">
      <h5><?php print $node->title ?></h5>
      <p><?php print $body ?></p>
    </div>
    <?php
  }
}
?>

